﻿using MrPP.SocketSystem;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MrPP.SerriedCabinet
{
    public class CloseColumn : Request
    {
        private byte[] districts_ = null;
        public CloseColumn(byte[] districts) {
            districts_ = districts;
        }
        public override short getCommand()
        {

            var bytes = new byte[] { 0xA0, 0x02 };
            return BitConverter.ToInt16(DataStream.FlipBytes(bytes), 0);
        }

        public override void serialize(DataStream writer)
        {
            base.serialize(writer);
            writer.WriteRaw(districts_);
        }

    }
}